package com.bosssoft.ct.redis.demo1.dao;

import com.bosssoft.ct.redis.demo1.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ChenTong
 * @version 1.0
 * @description 用户数据库操作层
 * @date 2020/6/18 14:13
 * @modified
 **/
@Repository
public interface UserDao {
    /**
     * @description 获取用户列表
     * @author ChenTong
     * @return java.util.List<com.bosssoft.ct.redis.demo1.entity.User>
     * @date 2020/6/18 14:20
     */
    List<User> selectAll();

    User selectById(@Param("id")Long id);
}
